package com.livew.framework.fastdfs;

import java.util.List;

/**
 * DFS获取连接需要的配置信息
 * 
 * 2016年4月7日
 */
public class Config {
	
	/**
	 * 配置文件中对应的key，其中tracker是指以tracker开头的一组tracker server
	 * 
	 * 2016年4月7日
	 */
	public enum Key{
		connectTimeout,netWorkTimeout,httpPort,tracker
	}
	
	private int connectTimeout = 2000;// 连接超时的时限，单位为毫秒
	
	private int netWorkTimeout = 30000;//网络超时的时限，单位为毫秒
	
	private int httpPort;// HTTP访问服务的端口号
	
	List<TrackerServerConfig> trackerConfigs;//Tracker 服务配置信息

	public int getConnectTimeout() {
		return connectTimeout;
	}

	public void setConnectTimeout(int connectTimeout) {
		this.connectTimeout = connectTimeout;
	}

	public int getNetWorkTimeout() {
		return netWorkTimeout;
	}

	public void setNetWorkTimeout(int netWorkTimeout) {
		this.netWorkTimeout = netWorkTimeout;
	}

	public int getHttpPort() {
		return httpPort;
	}

	public void setHttpPort(int httpPort) {
		this.httpPort = httpPort;
	}

	public List<TrackerServerConfig> getTrackerConfigs() {
		return trackerConfigs;
	}

	public void setTrackerConfigs(List<TrackerServerConfig> trackerConfigs) {
		this.trackerConfigs = trackerConfigs;
	}

}
